package com.cn.bukeManage.dao;

import java.util.List;
import java.util.Map;

import com.cn.bukeManage.pojo.Advertisement;
import com.cn.bukeManage.pojo.App;
import com.cn.bukeManage.pojo.Picture;
import com.cn.bukeManage.pojo.Problem;
import com.cn.bukeManage.pojo.page.AdvertisementPage;
import com.cn.bukeManage.pojo.page.AppPage;

public interface APPDao {

	List<Map<String,Object>> getAllAdByPage(AdvertisementPage page);

	Integer getAllRowsByAppId(AdvertisementPage page);

	List<App> getAllAppDetail(AppPage page);

	Integer getAllRowsAppDetail();

	App getAppByAppId(Integer appId);

	Integer getProblemRowsByAppId(Integer appId);

	List<Problem> getProblemByAppId(Integer appId);

	Integer updateAppData(App app);

	Integer addNewApp(App app);

	List<Picture> getPictureByAdId(Integer object);

	Integer updateAdverStatus(Advertisement advertisement);

	Integer updateAdverPictureByAdverId(Map<String, Object> map);

}
